From: Florian Müllner Date: Fri, 22 Nov 2019 17:37:25 +0000 (+0100) Subject: volume: Skip volume-change feedback while playing X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~371 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2894085c45526bf2c7ea96b6374acd05f597e4b7;p=gnome-shell.git volume: Skip volume-change feedback while playing The audio feedback for volume changes is useful when nothing is outputting sound, but only then. Skip the sound notification in that case. https://gitlab.gnome.org/GNOME/gnome-shell/issues/53 --- diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index 87b24e04a..5ffb18989 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -138,6 +138,9 @@ var StreamSlider = class { } _notifyVolumeChange() { + if (this._stream.state === Gvc.MixerStreamState.RUNNING) + return; // feedback not necessary while playing + if (this._volumeCancellable) this._volumeCancellable.cancel();